From 469cd49a60e390c4f4c204eb0127caac45879ab8 Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Mon, 29 Jun 2009 21:05:05 +0000 Subject: [PATCH] * net/tramp.el (tramp-do-copy-or-rename-file-directly): Set file modes mandatory. (Bug#3712) --- lisp/net/tramp.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index 5b51d6cc966..fdc1e276994 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el @@ -3336,9 +3336,8 @@ the uid and gid from FILENAME." (error))))))))) ;; Set the time and mode. Mask possible errors. - ;; Won't be applied for 'rename. (condition-case nil - (when (and keep-date (not preserve-uid-gid)) + (when keep-date (set-file-times newname (nth 5 (file-attributes filename))) (set-file-modes newname (tramp-default-file-modes filename))) (error))))) -- 2.30.2